<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateQaecmsPlayersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('qaecms_players', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('name')->comment('播放器名称');
            $table->string('type')->comment('分类');
            $table->string('url')->comment('播放器地址')->nullable();
            $table->integer('sort')->comment('排序');
            $table->tinyInteger('status')->comment('状态 默认开启')->default(1);
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('qaecms_players');
    }
}
